package com.ruoyi.purchase.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购订单对象 t_purchase_order
 *
 * @author wonderland
 * @date 2023-07-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class PurchaseOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    private Long id;

    /**
     * 供应商名
     */
    @Excel(name = "供应商名")
    private String supplierName;

    /**
     * 单据编号
     */
    @Excel(name = "单据编号")
    private String receiptNumber;

    /**
     * 商品信息
     */
    @Excel(name = "商品信息")
    private String goodsInfo;

    /**
     * 单据日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date billDate;

    /**
     * 操作员
     */
    @Excel(name = "操作员")
    private String adminName;

    /**
     * 金额合计
     */
    @Excel(name = "金额合计")
    private BigDecimal totalAmount;

    /**
     * 支付定金
     */
    @Excel(name = "支付定金")
    private BigDecimal depositAmount;

    /**
     * 订单备注
     */
    @Excel(name = "订单备注")
    private String note;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Long state;

    /**
     * 优惠金额
     */
    @Excel(name = "优惠金额")
    private BigDecimal discountAmount;

    /**
     * 优惠后金额
     */
    @Excel(name = "优惠后金额")
    private BigDecimal realAmount;

}
